package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 偏离信息表 实体类
 * 表名：ra_deviate
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_deviate")
public class RaDeviate implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 编码
     */
    @Column(name = "drift_code", nullable = false, length = 16)
    private String driftCode;
    
    /**
     * 名称
     */
    @Column(name = "drift_name", length = 32)
    private String driftName;
    
    /**
     * 引导词
     */
    @Column(name = "particle_word", length = 32)
    private String particleWord;
    
    /**
     * 参数
     */
    @Column(name = "arguments", length = 32)
    private String arguments;
    
    /**
     * 工作极限
     */
    @Column(name = "working_limit", length = 512)
    private String workingLimit;
    
    /**
     * 设计极限
     */
    @Column(name = "design_limit", length = 512)
    private String designLimit;
    
    /**
     * 单位
     */
    @Column(name = "units", length = 32)
    private String units;
    
    /**
     * 测量位置
     */
    @Column(name = "measure_site", length = 32)
    private String measureSite;
    
    /**
     * 运行范围
     */
    @Column(name = "operating_limits", length = 512)
    private String operatingLimits;
    
    /**
     * 是否默认（0、否 1、是）
     * 默认值: 1
     */
    @Column(name = "is_default")
    private Byte isDefault;
    
    /**
     * 排序
     * 默认值: 0
     */
    @Column(name = "sort_no")
    private Integer sortNo;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaDeviate{" +
            "id=" + id +
            ", driftCode=" + driftCode +
            ", driftName=" + driftName +
            ", particleWord=" + particleWord +
            ", arguments=" + arguments +
            ", workingLimit=" + workingLimit +
            ", designLimit=" + designLimit +
            ", units=" + units +
            ", measureSite=" + measureSite +
            ", operatingLimits=" + operatingLimits +
            ", isDefault=" + isDefault +
            ", sortNo=" + sortNo +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 